package com.jhc.drone.communication.web;


import com.jhc.drone.communication.service.CmdService;
import com.jhc.drone.communication.vo.CmdVo;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lcp
 * @date 2025年02月2025/2/20 10:46
 * @describe
 */
@RequestMapping("/command")
@RestController
@RequiredArgsConstructor
public class CmdController {

    private final CmdService cmdService;

    @PostMapping("/process")
    public void uploadMission(@RequestBody CmdVo cmdVo) throws Exception {
        cmdService.processCmd(cmdVo);
    }

}
